import { defineClientConfig } from 'vuepress/client';
import { setupRunningTimeFooter } from 'vuepress-theme-hope/presets/footerRunningTime.js';
import { setupTransparentNavbar } from 'vuepress-theme-hope/presets/transparentNavbar.js';
import MyHome from './layouts/MyHome.vue';

export default defineClientConfig({
  setup() {
    setupRunningTimeFooter(
      new Date('2022-01-01'),
      {
        '/': 'Running time: :day days :hour hours :minute minutes :second seconds',
        '/zh/': '已运行 :day 天 :hour 小时 :minute 分钟 :second 秒',
      },
      true
    );
    setupTransparentNavbar({ type: 'homepage' });
  },
  layouts: {
    // 一个主页布局，带有自定义的 Hero 标志
    MyHome,
  },
});
